const config = require('../config');
const mongoose = require('mongoose');
mongoose.connect(config.db_conn);
const Schema = mongoose.Schema;


const softwareSchema = new Schema({
    name: String,
    magnet: String,
    logo: String,
    createDate: Date,
    uploadDate: {
        type: Date,
        default: Date.now
    },
    hidden: Boolean
});

const macSoftware = mongoose.model('macSoftware', softwareSchema);

module.exports = {
    macSoftware
}